package com.rd.student.dashuju.zhengchengxiang.Day0731;

import java.util.Arrays;

public class SelectSort {
    public static void main(String[] args) {
        int[] arr = {60, 77, 33, 55, 11, 22, 80,12,-100};

        for (int i = 0; i < arr.length-1; i++) {
            for (int j = i+1; j < arr.length; j++) {
                if(arr[i]>arr[j]){
                    int temp = arr[i];
                    arr[i] = arr[j];
                    arr[j] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
